package com.boot.service.impl;

import com.boot.domain.*;
import com.boot.mapper.*;
import com.boot.service.ThirdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class ThirdServiceImpl implements ThirdService {

    @Autowired
    private EquipmentMapper equipmentMapper;


    @Autowired
    private BrandAwardRateMapper brandAwardRateMapper;

    @Autowired
    private BrandMapper brandMapper;

    @Autowired
    private CottonMapper cottonMapper;

    @Autowired
    private EqupmentRateMapper equpmentRateMapper;

    @Autowired
    private EqupmentZoneMapper equpmentZoneMapper ;

    @Autowired
    private FibreCottonSuperviseMapper fibreCottonSuperviseMapper;

    @Autowired
    private FibreMapper fibreMapper;

    @Autowired
    private PatentedInventionMapper patentedInventionMapper;

    @Autowired
    private StandardCreateMapper standardCreateMapper;

    @Autowired
    private TechnologyUpMapper technologyUpMapper;

    @Autowired
    private TrainMapper trainMapper;

    @Autowired
    private ZoneBrandMapper zoneBrandMapper;

    @Autowired
    private TrophyMapper trophyMapper;





    @Override
    public List<Equipment> getEquNumber() {
        return equipmentMapper.selectNumber();
    }

    @Override
    public List<EqupmentRate> getEqupmentRates() {
         return equpmentRateMapper.selectAll();
     }

    @Override
    public List<Equipment> getEquCove() {
        return equipmentMapper.selectCover();
    }

    @Override
    public  List<Equipment> getEquRate() {

        return equipmentMapper.selectRate();
    }

    @Override
    public List<EqupmentZone> getEqupmentZones() {
        return equpmentZoneMapper.selectAll();
    }

    @Override
    public List<Cotton> getCottons() {
        return cottonMapper.selectAll();
    }

    @Override
    public List<Fibre> getFibres() {
        return fibreMapper.selectAll();
    }

    @Override
    public List<FibreCottonSupervise> getFibreCottonSupervises() {
        return fibreCottonSuperviseMapper.selectAll();
    }

    @Override
    public List<Brand> getBrand() {
        return brandMapper.selectAll();
    }

    @Override
    public List<Trophy> getBrandAwardName(String year) {
         return  trophyMapper.selectByYear(year);
    }

    @Override
    public List<BrandAwardRate> getBrandAwardRate() {
        return brandAwardRateMapper.selectAll();
    }

    @Override
    public List<ZoneBrand> getFibreZoneBrand() {
        return zoneBrandMapper.selectAll();
    }

    @Override
    public List<Train> getTrain() {
        return trainMapper.selectAll();
    }

    @Override
    public List<Train> getTrains() {
        return trainMapper.selectAllS();
    }

    @Override
    public List<StandardCreate> getStandardCreate() {
        return standardCreateMapper.selectAll();
    }

    @Override
    public List<PatentedInvention> getPatentedInvention() {
        return patentedInventionMapper.selectAll();
    }

    @Override
    public List<TechnologyUp> getTechnologyUps() {
        return technologyUpMapper.selectAll();
    }
}
